package cn.itcast.bos.dao.base;


import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

import cn.itcast.bos.domain.base.Standard;

public interface StandardDao extends JpaRepository<Standard, Integer>{

	
	public List<Standard> findByName(String name);
	public List<Standard> findByNameLike(String name);
	
	@Query(value="from Standard where name=?")
	public List<Standard> queryName(String name);
	@Query(value="update Standard set maxLength = ? where id = ?")
	@Modifying
	public void update(Integer maxLength,Integer id);
}
